Conversation
b823833 to
5d46115
Compare
|
Working with Marshal and UnmarshalJSON have been pretty crazy, there may be cleaner ways to do this. I'm open to any suggestions. |
5d46115 to
312da69
Compare
312da69 to
7f58837
Compare
|
No need to request a review from @Integralist for this, the DevTools team can handle it now. |
There was a problem hiding this comment.
I have found only some nit picks otherwise this looks good to me!
With the following config:
philipp@philipp-XPS-15-9500:~/src/fastly/cli/ps$ cat fastly.toml
# This file describes a Fastly Compute package. To learn more visit:
# https://www.fastly.com/documentation/reference/compute/fastly-toml
authors = ["ps@gmail.com"]
cloned_from = "https://github.com/fastly/compute-starter-kit-rust-default"
description = "ps"
language = "rust"
manifest_version = 3
name = "ps"
service_id = ""
[local_server]
kv_stores.store_name = {file = "entries.json", format = "json"}
[scripts]
build = "cargo build --profile release"
everything builds:
philipp@philipp-XPS-15-9500:~/src/fastly/cli/ps$ ./fastly compute build
✓ Verifying fastly.toml
✓ Identifying package name
✓ Identifying toolchain
✓ Running [scripts.build]
✓ Creating package archive
SUCCESS: Built package (pkg/ps.tar.gz)
|
Thanks for your review. Please review once more =) |
philippschulte
left a comment
There was a problem hiding this comment.
Thanks for the changes. I believe we don't need those wrapper types in the test suite. Please have a look and let me know. Thanks.
kpfleming
left a comment
There was a problem hiding this comment.
A couple of questions, only one of which is potentially blocking.
85be089 to
9549508
Compare
|
Thanks for your comments, @philippschulte |
|
Thanks for your comments, @kpfleming |
philippschulte
left a comment
There was a problem hiding this comment.
LGTM. Thanks for addressing all of my comments.
kpfleming
left a comment
There was a problem hiding this comment.
Looks great!
Once this is merged we'll need to update the fastly.toml docs too.
|
Thank you for tackling this! 👍 |
|
Thanks everyone!
Agreed, I'll work on that too. |
Viceroy's KV Store can now be configured using external JSON files specified using fastly.toml (fastly/Viceroy#365 and fastly/Viceroy#428).
However, Fastly CLI's fastly.toml validation would choke and it was not possible to use the new syntax.
This PR updates the TOML marshaling/unmarshaling mechanism to enable the new syntax in fastly.toml.
Fixes #1319
Changes to Core Features:
User Impact
Are there any considerations that need to be addressed for release?
This should be backwards compatible.